<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../../base.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="../../js/datepicker/WdatePicker.js"></script>
</head>
<body>
<form method="post" action="${pageContext.request.contextPath}/contract/updateContract">
    <input type="hidden" name="contract_id" value="${contractC.contract_id}"/>

    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="save"><a href="#" onclick="formSubmit('update.action','_self');">确定</a></li>
                        <li id="back"><a href="list.action">返回</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="textbox" id="centerTextbox">

        <div class="textbox-header">
            <div class="textbox-inner-header">
                <div class="textbox-title">
                    修改购销合同信息
                </div>
            </div>
        </div>
        <div>
            <div>
                <table class="commonTable" cellspacing="1">
                    <tr>
                        <td class="columnTitle_mustbe">客户名称：</td>
                        <td class="tableContent"><input type="text" name="custom_name"
                                                        value="${contractC.custom_name}"/></td>
                        <td class="columnTitle_mustbe">收购方：</td>
                        <td class="tableContent"><input type="text" name="offeror" value="${contractC.offeror}"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">合同号：</td>
                        <td class="tableContent"><input type="text" name="contract_no"
                                                        value="${contractC.contract_no}"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">签单日期：</td>
                        <td class="tableContent">
                            <input type="text" style="width:90px;" name="signing_date"
                                   value="<fmt:formatDate value="${contractC.signing_date}" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
                        </td>
                        <td class="columnTitle_mustbe">重要程度：</td>
                        <td class="tableContentAuto">
                            <input type="radio" name="importNum" value="3" class="input"
                                   <c:if test="${contractC.import_num==3}">checked</c:if>>★★★
                            <input type="radio" name="importNum" value="2" class="input"
                                   <c:if test="${contractC.import_num==2}">checked</c:if>>★★
                            <input type="radio" name="importNum" value="1" class="input"
                                   <c:if test="${contractC.import_num==1}">checked</c:if>>★
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">交货期限：</td>
                        <td class="tableContent">
                            <input type="text" style="width:90px;" name="deliveryPeriod"
                                   value="<fmt:formatDate value="${contractC.delivery_period}" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
                        </td>
                        <td class="columnTitle_mustbe">船期：</td>
                        <td class="tableContent">
                            <input type="text" style="width:90px;" name="shipTime"
                                   value="<fmt:formatDate value="${contractC.ship_time}" pattern="yyyy-MM-dd"/>"
                                   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">验货员：</td>
                        <td class="tableContent"><input type="text" name="inspector" value="${contractC.inspector}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">制单人：</td>
                        <td class="tableContent"><input type="text" name="input_by" value="${contractC.input_by}"/></td>
                        <td class="columnTitle_mustbe">审单人：</td>
                        <td class="tableContent"><input type="text" name="check_by" value="${contractC.check_by}"/></td>
                    </tr>
                    <tr>
                        <td class="columnTitle_mustbe">要求：</td>
                        <td class="tableContent"><textarea name="request"
                                                           style="height:120px;">${contractC.request}</textarea></td>
                        <td class="columnTitle_mustbe">说明：</td>
                        <td class="tableContent"><textarea name="remark"
                                                           style="height:120px;">${contractC.remark}</textarea></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

</form>
</body>
</html>

